<!DOCTYPE html>
<html lang="zh" xmlns:th="http://www.thymeleaf.org">
<head>
  <th:block th:include="include :: header('新增常用语')"/>
</head>
<body>
<div class="main-content">
  <form id="form-user-add" class="form-horizontal">
    <div class="row">
      <div class="col-sm-6">
        <div class="form-group">
          <label class="col-sm-4 control-label is-required">编号：</label>
          <div class="col-sm-8">
            <input name="csvalue" placeholder="请输入编号" class="form-control" type="text" maxlength="30"
                   required>
          </div>
        </div>
      </div>
      <div class="col-sm-6">
        <div class="form-group">
          <label class="col-sm-4 control-label is-required">排序值：</label>
          <div class="col-sm-8">
            <input name="csord" placeholder="请输入排序值" class="form-control" type="text" required>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-6">
        <div class="form-group">
          <label class="col-sm-4 control-label is-required">类别编码：</label>
          <div class="col-sm-8">
            <input name="codeBig" placeholder="请输入类别编码" class="form-control" type="text" required>
          </div>
        </div>
      </div>
      <div class="col-sm-6">
        <div class="form-group">
          <label class="col-sm-4 control-label is-required">类别名称：</label>
          <div class="col-sm-8">
            <input name="type" placeholder="请输入类别名称" class="form-control" type="text" required>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-12">
        <div class="form-group">
          <label class="col-sm-2 control-label is-required">标题：</label>
          <div class="col-sm-10">
                            <textarea name="cstext" maxlength="3500"
                                      class="form-control opinion"
                                      rows="3" required></textarea>
          </div>
        </div>
      </div>
    </div>
    <div class="row">
      <div class="col-sm-12">
        <div class="form-group">
          <label class="col-sm-2 control-label">内容：</label>
          <div class="col-sm-10">
                            <textarea name="remark" maxlength="3500"
                                      class="form-control opinion"
                                      rows="3"></textarea>
          </div>
        </div>
      </div>
    </div>
  </form>
</div>

<th:block th:include="include :: footer"/>
<script>
  var prefix = ctx + "system/content";

  function submitHandler() {
    if ($.validate.form()) {
      var data = $('#form-user-add').serializeArray();
      $.operate.save(prefix + "/addScodeSmall", data);
    }
  }

</script>
</body>
</html>
